{% extends 'base.html' %}
{% block content %}
<h2>{{ '登录' if 'login' in request.endpoint else '注册' }}</h2>
<form method="post">
  <div class="mb-3"><input class="form-control" name="username" placeholder="用户名"></div>
  <div class="mb-3"><input class="form-control" type="password" name="password" placeholder="密码"></div>
  <button class="btn btn-primary">{{ '登录' if 'login' in request.endpoint else '注册' }}</button>
</form>
{% endblock %}